import request from '@/utils/request'

export function getMessageBoardList(data) {
  return request({
    url: '/messageBoard/admin/list',
    method: 'post',
    data
  })
}

export function deleteMessageBoard(params) {
  return request({
    url: '/messageBoard/admin/del',
    method: 'get',
    params
  })
}

export function createMessageBoardDetail(data) {
  return request({
    url: '/messageBoard/admin/create',
    method: 'post',
    data
  })
}

export function updateMessageBoardDetail(data) {
  return request({
    url: '/messageBoard/admin/update',
    method: 'post',
    data
  })
}
export function replyMessageBoardDetail(data) {
  return request({
    url: '/messageBoard/admin/reply',
    method: 'post',
    data
  })
}


export function getMessageBoardDetail(params) {
  return request({
    url: '/messageBoard/admin/getDetail',
    method: 'get',
    params
  })
}

